Skip to content

Dev#1

Open
Ulyanov-VN wants to merge 6 commits intomasterfrom
dev
Open

Dev#1
Ulyanov-VN wants to merge 6 commits intomasterfrom
dev

Conversation

@Ulyanov-VN
Copy link
Owner

No description provided.

Comment on lines +2 to +3
String name;
int speed;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Переменные лучше пометить final, чтобы не было возможности их модификации извне

Comment on lines +34 to +37
Race race = new Race();
for (Car car : cars) {
race.newLeader(car);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это можно прямо при вводе данных считать, не создавая отдельный список для машин

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants